<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
    <div id="app">
       {{test(1233)}}
    </div>
</body>
<script src="../js/vue.js"></script>
<script>
    Vue.config.productionTip = false;
    new Vue({
        el:"#app",
        /*methods:{
            test(flag){
                console.log(flag);
                return "xxx" + flag
            }
        }*/

        computed:{
            test(){
                return function (flag){
                    return "xxx" + flag
                }
            }
        }
    })
</script>
</html>